package com.pucheng.bracelet.data.bean

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.pucheng.bracelet.app.util.DatetimeUtil

@Entity(tableName = "sao2")
data class Sao2Bean(@PrimaryKey(autoGenerate = true) val id: Int = 0, @ColumnInfo(name = "sao2") val sao2Vaule:Int = 80, @ColumnInfo(name = "measured_date") val measuredDate:String = DatetimeUtil.formatDate(System.currentTimeMillis(),
    DatetimeUtil.DATE_PATTERN_A_H)) : BarChartBean("$sao2Vaule%", sao2Vaule.toDouble())